package com.jic.product.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.product.entity.ProductPropertyNameRelation;
import com.jic.product.manage.request.ProductParentRequest;

import java.util.List;

/**
* 商品属性名
* @author : 
* @email : 
* @since : 2020-01-10 07:03:01
* @version : v1.0.0
*/
public interface ProductPropertyNameRelationService {

    long insert(ProductPropertyNameRelation productPropertyNameRelation);

    long delete(Long id);

    long update(ProductPropertyNameRelation productPropertyNameRelation);

    ProductPropertyNameRelation queryByPrimaryKey(Long id);

    List<ProductPropertyNameRelation> query(ProductPropertyNameRelation productPropertyNameRelation);

    PageResult<ProductPropertyNameRelation> queryPage(ProductPropertyNameRelation productPropertyNameRelation, Page pageQuery);

    RestResult<Boolean> savePropertyNameRelation(ProductParentRequest productParentRequest);
}